<form name="searchForm" action="friendsPage.php">
<input id="searchbar" type="text" ></input>
</form>
<ul id="menu">
   <li><a href="index.php">Log out</a></li>
   <li><a href="homepage.php">Home</a></li>
   <li><a href="#">Friends</a></li>
   <li>
   <?php 
   echo "<a href='personPage.php?useridperson=$userid'>$name</a>";
   ?>
   </li>
</ul>